package com.dotc.patterndemo.create.factory.factoryMethod;

import com.dotc.patterndemo.entity.Fruit;
import com.dotc.patterndemo.entity.Fruitt.Apple;
import com.dotc.patterndemo.entity.Fruitt.Orange;

/**
 * 工厂方法模式
 */
public class OrageFactory implements FruitFactory {
    @Override
    public Fruit getFruit() {
        return new Orange("Peter",80);
    }
}
